package com.onetime.mall.member.feign;

import com.onetime.common.utils.R;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Lenovo
 */
@Mapper

@EnableFeignClients(basePackages = "com.onetime.mall.member.feign")//开启远程调用功能
@FeignClient("mall-coupon")
public interface CouponFeignService {
    @RequestMapping("/coupon/coupon/memberCoupon/list")   //声明要调用远程服务的哪个方法
    public R memberCoupons();
}
